/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Agregar_Amigo.java
 *
 * Created on 19-may-2010, 19:49:03
 */

package Interfaces;

/**
 *
 * @author Michelangelo
 */
public class Agregar_Amigo extends javax.swing.JFrame {

    /** Creates new form Agregar_Amigo */
    public Agregar_Amigo() {
        initComponents();
        this.setTitle("Amigos");
        this.setSize(500, 400);

        this.cb_ListaAmigos.setLocation(140,120);
        this.l_ListaAmigos.setLocation(this.cb_ListaAmigos.getX(),this.cb_ListaAmigos.getY()-25);
        this.l_ListaAmigos.setText("Lista de Amigos");
        this.atras.setLocation(50, 280);
        this.atras.setSize(125, 30);
        this.agregar.setLocation(320, 280);
        this.agregar.setSize(125, 30);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLayeredPane1 = new javax.swing.JLayeredPane();
        l_ListaAmigos = new javax.swing.JLabel();
        cb_ListaAmigos = new javax.swing.JComboBox();
        atras = new javax.swing.JButton();
        agregar = new javax.swing.JButton();
        titulo = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        l_ListaAmigos.setBackground(new java.awt.Color(204, 255, 51));
        l_ListaAmigos.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        l_ListaAmigos.setForeground(new java.awt.Color(255, 255, 255));
        l_ListaAmigos.setText("Lista Amigos");
        l_ListaAmigos.setBounds(130, 120, 120, 20);
        jLayeredPane1.add(l_ListaAmigos, javax.swing.JLayeredPane.DEFAULT_LAYER);

        cb_ListaAmigos.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        cb_ListaAmigos.setBounds(130, 140, 210, 20);
        jLayeredPane1.add(cb_ListaAmigos, javax.swing.JLayeredPane.DEFAULT_LAYER);

        atras.setText("Atras");
        atras.setBounds(60, 280, 100, 23);
        jLayeredPane1.add(atras, javax.swing.JLayeredPane.DEFAULT_LAYER);

        agregar.setText("Agregar");
        agregar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                agregarActionPerformed(evt);
            }
        });
        agregar.setBounds(310, 277, 100, 23);
        jLayeredPane1.add(agregar, javax.swing.JLayeredPane.DEFAULT_LAYER);

        titulo.setBackground(new java.awt.Color(204, 255, 51));
        titulo.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        titulo.setText("         Amigos");
        titulo.setBounds(150, 10, 210, 22);
        jLayeredPane1.add(titulo, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Homero_2.png"))); // NOI18N
        jLabel1.setText("jLabel1");
        jLabel1.setBounds(0, 0, 480, 410);
        jLayeredPane1.add(jLabel1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 482, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 340, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void agregarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_agregarActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_agregarActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Agregar_Amigo().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton agregar;
    private javax.swing.JButton atras;
    private javax.swing.JComboBox cb_ListaAmigos;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLayeredPane jLayeredPane1;
    private javax.swing.JLabel l_ListaAmigos;
    private javax.swing.JLabel titulo;
    // End of variables declaration//GEN-END:variables

}
